Token Denoms
Queries the available token denoms for the specified token Id on the specified chains.
query Token_denoms($denom: String, $tokenId: String, $chainUid: [String!]) {
token {
token_denoms(denom: $denom, token_id: $tokenId, chain_uid: $chainUid) {
denoms {
chain_uid
token_type {
... on NativeTokenType {
native {
denom
}
}
... on SmartTokenType {
smart {
contract_address
}
}
... on VoucherTokenType {
voucher
}
}
}
token_id
}
}
}
Example
curl --request POST \
--header 'content-type: application/json' \
--url 'https://devnet-testing.api.euclidprotocol.com/graphql' \
--data '{"query":"query Token_denoms($denom: String, $tokenId: String, $chainUid: [String!]) {\n token {\n token_denoms(denom: $denom, token_id: $tokenId, chain_uid: $chainUid) {\n denoms {\n chain_uid\n token_type {\n ... on NativeTokenType {\n native {\n denom\n }\n }\n ... on SmartTokenType {\n smart {\n contract_address\n }\n }\n ... on VoucherTokenType {\n voucher\n }\n }\n }\n token_id\n }\n }\n}","variables":{"denom":null,"tokenId":"usdc","chainUid":"injective"}}'
Arguments
- denom (String): Optional filter to match a specific token denomination. Can be either the denom for native tokens or contract address for smart tokens.
- tokenId (String): Optional filter to match a specific token identifier.
- chainUid ([String!]): Optional list of chain UIDs to filter the token denoms by chain.
Return Fields
Field | Type | Description |
---|---|---|
tokenId | String | The unique identifier for the token. |
chain_uid | [String] | The chain UID where the token is available. |
native | Native | Details of the native tokens (Denoms). |
smart | Smart | Details of the CW20 tokens (Contract addresses). |
voucher | String | Details about the Voucher token. |
Field | Type | Description |
---|---|---|
native | Native | Details of the native tokens (Denoms). |
smart | Smart | Details of the CW20 tokens (Contract addresses). |
voucher | String | Details about the Voucher token. |
Native
Field | Type | Description |
---|---|---|
denom | String | The denomination of the native token. |
Smart
Field | Type | Description |
---|---|---|
contractAddress | String | The contract address of the smart token. |